/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package air.sb;

import air.eb.*;
import java.util.*;
import javax.ejb.Remote;

/**
 *
 * @author Keith
 */
@Remote
public interface LuftRemote {

    public ArrayList<ArrayList<Flightinstance>> getRoutes();

    public Collection<Flightinstance> getRoute();

    public String getReceipt(int tripNr);

    public Collection<Seatinstance> getFreeSeats();

    public Collection<Airport> getAllAirports();

    public void findRoutes(String d, String dep, String dest, int nrPassenger);

    public void findFlightSeats(List<String> flights);

    public void findTrip(int tripNumber, String pNumber);

    public ArrayList<ArrayList<Flightinstance>> getValidFlights();

    public void findTripToBeDeleted(List<Integer> sNr, List<String> sRow, List<String> name, List<String> pNr,
            List<String> arrDate, List<String> depDate, List<String> flights, int nrOfFlights);

    public void bookOther(int sNr, String sRow, String name, String pNr, String flights);

    public void findAllAirports();

    public boolean getDelLogin(int tripNr, String pNr);

    // public void validateLogIn(String tripNr, String pNumber);
    public Flightinstance getFlightinstanceByPK(String pk);

    public int getNumberOfPassengers();

    public void bookTrip(ArrayList<Integer> sNr, ArrayList<String> sRow, ArrayList<String> name, ArrayList<String> pNr, ArrayList<String> arrDate, ArrayList<String> depDate, ArrayList<String> flights, ArrayList<String> airlines, int parseInt, int tripNr);

    public void setRoute(Collection<Flightinstance> route);

    public void deleteTrip(int tripNr, String pNr);

    public void findArrivalFlights(String arr, int nrPassenger);

    public ArrayList<Flightinstance> getArrivalFlights();

    public void findDepartureFlights(String dep, int nrPassenger);

    public ArrayList<Flightinstance> getDepartureFlights();

    public int getNrTrips();

    public int getTripNr();
    public String getDep();

    public String getArr();
}
